define([
    'esri/dijit/Basemap',
    'esri/dijit/BasemapLayer',
    'dojo/i18n!./nls/main'
], function (Basemap, BasemapLayer, i18n) {

    return {
        map: true, // needs a reference to the map
        topicID: 'basemapWdiget',
        //mode: 'agol', // mut be either 'agol' or 'custom'
        //e30a8837fd5b4fce8340d295ee0b77d1 fa633b1ce373410f9abc1cc8d6474628
        /* optional starting basemap
        / otherwise uses the basemap from the map
        / must match one of the keys in basemaps object below
        */
        //mapStartBasemap: 'streets',

        /* optional array of  basemaps to show in menu.
        / otherwise uses keys in basemaps object below
        / values in array must match keys in basemaps object
        */
        basemapsToShow: ['zw', 'yx', 'dlgfullcolor', 'dlgunicolor'],

        // define all valid basemaps here.
        basemaps: {
            zw:{
                title: i18n.basemaps.zw,
                basemap: new Basemap({
                    id: 'zw',
                    layers: [new BasemapLayer({
                        url: urls.onemap_url + urls.gis_basemap_url+'?token='+ GLOBAL_TOKEN
                    })]
                })
            },
            yx:{
                title: i18n.basemaps.yx,
                basemap: new Basemap({
                    id: 'yx',
                    layers: [new BasemapLayer({
                        url: urls.onemap_url + urls.gis_air_url+'?token='+ GLOBAL_TOKEN
                    })]
                })
            },
            dlgfullcolor: {
                title: i18n.basemaps.dlgfullcolor,
                basemap: new Basemap({
                    id: 'dlgfullcolor',
                    layers: [new BasemapLayer({
                        url: urls.onemap_url + urls.gis_dlgfull_url+'?token='+ GLOBAL_TOKEN
                    })]
                })
            },
            dlgunicolor:{
                title: i18n.basemaps.dlgunicolor,
                basemap: new Basemap({
                    id: 'dlgunicolor',
                    layers: [new BasemapLayer({
                        url: urls.onemap_url + urls.gis_dlguni_url+'?token='+ GLOBAL_TOKEN
                    })]
                })
            }
        }
    };
});